package com.ttnet.model;

import java.util.StringTokenizer;

import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "WEATHER")
public class Weather extends BaseModel {

	private int day;
	private String minT;
	private String maxT;

	public Weather(String token) {
		StringTokenizer st = new StringTokenizer(token);
		day = Integer.valueOf(st.nextToken());
		minT = st.nextToken();
		maxT = st.nextToken();
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public String getMinT() {
		return minT;
	}

	public void setMinT(String minT) {
		this.minT = minT;
	}

	public String getMaxT() {
		return maxT;
	}

	public void setMaxT(String maxT) {
		this.maxT = maxT;
	}

}
